<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <html>
        <head>
            <title></title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <script src="__PUBLIC__/jquery-1.7.2.min.js"></script>
        <link href="__PUBLIC__/admin/css/category.css" rel="stylesheet" type="text/css"/>  
    </head>
    <body>
        <div class='content'>
            <if condition='isset($data["name"])'>
                <div class='t'>
			<h3>添加{$data.name}子分类</h3>
		</div>
            <else/>
                <div class='t'>
			<h3>添加商品顶级分类</h3>
		</div>
            </if>
            <form action="{:U('add')}" method="post">
                        <table>
                           
                            <if condition='isset($data["name"])'>
                                 <input type="hidden" name='pid' value="{$Think.get.cid|default=0}">
                                 <tr>
                                    <th>所属于类型</th>
                                    <td>
                                        <select name='type_id'>
                                            <option>--选择类型--</option>
                                            <foreach name="type" item="t">
                                                <option value='{$t.type_id}'>{$t.name}</option>
                                            </foreach>
                                            
                                        </select>
                                        <span class="red">*</span><span class='catname'>请选择对应类型</span></td>
                                </tr>
                            </if>
                            <tr>
                                <th>分类名称</th>
                                <td><input type="text" name='name'/>
                                    <span class="red">*</span><span class='catname'>栏目名称请使用中文、英文、下划线</span></td>
                            </tr>
                            <tr>
                                <td colspan="2" width="45%" align='right'><input type="submit" class="bt1" value="添加分类"/></td>
                            </tr>
                        </table>
                    <div>
                        
                    </div>

            </form>
        </div>
    </body>
</html>